package com.patterns.bridge;

/**
 * 多层继承普通继承方法实现场景
 * @author huangke
 *
 */
public interface Computer {
	public void sale();
}

// -------------- 机型 ----------------------
//台式机
class Desktop implements Computer{
	public void sale() {
		System.out.println("台式机");
	}
}
//笔记本
class Notebook implements Computer{
	public void sale() {
		System.out.println("笔记本");
	}
}
//平板电脑
class Pad implements Computer{
	public void sale() {
		System.out.println("平板电脑");
	}
}
//-------------- 品牌 + 机型 ----------------
//戴尔台式机
class DellDesktop extends Desktop{
	@Override
	public void sale() {
		System.out.println("戴尔台式机");
	}
}
//戴尔笔记本
class DellNotebook extends Desktop{
	@Override
	public void sale() {
		System.out.println("戴尔笔记本");
	}
}
//戴尔平板电脑
class DellPad extends Desktop{
	@Override
	public void sale() {
		System.out.println("戴尔平板电脑");
	}
}

//苹果台式机
class AppleDesktop extends Desktop{
	@Override
	public void sale() {
		System.out.println("苹果台式机");
	}
}
//苹果笔记本
class AppleNotebook extends Desktop{
	@Override
	public void sale() {
		System.out.println("苹果笔记本");
	}
}
//苹果平板电脑
class ApplePad extends Desktop{
	@Override
	public void sale() {
		System.out.println("苹果平板电脑");
	}
}

//联想台式机
class LenovoDesktop extends Desktop{
	@Override
	public void sale() {
		System.out.println("联想台式机");
	}
}
//联想笔记本
class LenovoNotebook extends Desktop{
	@Override
	public void sale() {
		System.out.println("联想笔记本");
	}
}
//联想平板电脑
class LenovoPad extends Desktop{
	@Override
	public void sale() {
		System.out.println("联想平板电脑");
	}
}
